From 5940d3d095661f541a843e5d4c5f9363c18cd63c Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Wed, 5 Mar 2014 01:02:29 +0000 Subject: [PATCH] xen: arm: prevent building with CONFIG_EARLY_PRINTK if not a debug build early printk on ARM is tied to debug being enabled, so error out instead of silently and unexpectedly building without early printk when asked. Signed-off-by: Ian Campbell Acked-by: Julien Grall --- xen/arch/arm/Rules.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xen/arch/arm/Rules.mk b/xen/arch/arm/Rules.mk index aaa203ea79..aa2e79fda5 100644 --- a/xen/arch/arm/Rules.mk +++ b/xen/arch/arm/Rules.mk @@ -99,4 +99,12 @@ CFLAGS-$(EARLY_PRINTK) += -DEARLY_PRINTK_INC=\"debug-$(EARLY_PRINTK_INC).inc\" CFLAGS-$(EARLY_PRINTK) += -DEARLY_PRINTK_BAUD=$(EARLY_PRINTK_BAUD) CFLAGS-$(EARLY_PRINTK) += -DEARLY_UART_BASE_ADDRESS=$(EARLY_UART_BASE_ADDRESS) CFLAGS-$(EARLY_PRINTK) += -DEARLY_UART_REG_SHIFT=$(EARLY_UART_REG_SHIFT) + +else # !debug + +ifneq ($(CONFIG_EARLY_PRINTK),) +# Early printk is dependant on a debug build. +$(error CONFIG_EARLY_PRINTK enabled for non-debug build) +endif + endif -- 2.30.2